﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace Microsoft.ResourceManagement.Samples.ResourceManagementClient.WSEnumerate
{
    [Serializable, XmlType(TypeName = "PullAdjustmentType", Namespace = "http://schemas.microsoft.com/2006/11/ResourceManagement"), XmlRoot(ElementName = "PullAdjustment", Namespace = "http://schemas.microsoft.com/2006/11/ResourceManagement", IsNullable = false)]
    public class PullAdjustmentType
    {
        // Fields
        private EnumerationDirectionType enumerationDirectionField;
        private string startingIndexField;

        // Properties
        [XmlElement(ElementName = "EnumerationDirection")]
        public EnumerationDirectionType EnumerationDirection
        {
            get
            {
                return this.enumerationDirectionField;
            }
            set
            {
                this.enumerationDirectionField = value;
            }
        }

        [XmlElement(ElementName = "StartingIndex", DataType = "positiveInteger")]
        public string StartingIndex
        {
            get
            {
                return this.startingIndexField;
            }
            set
            {
                this.startingIndexField = value;
            }
        }
    }

    [Serializable, XmlRoot(ElementName = "EnumerationDirection", Namespace = "http://schemas.microsoft.com/2006/11/ResourceManagement", IsNullable = false), XmlType(TypeName = "EnumerationDirection", Namespace = "http://schemas.microsoft.com/2006/11/ResourceManagement")]
    public enum EnumerationDirectionType
    {
        Forwards,
        Backwards
    }

}
